// gallery.js
Page({
  data: {
    pets: [
      { id: 1, name: '小狗', image: '/images/dog.png' },
      { id: 2, name: '小猫', image: '/images/cat.png' },
      { id: 3, name: '小兔', image: '/images/rabbit.png' }
    ]
  },
  navigateToPetDetail: function (e) {
    const petId = e.currentTarget.dataset.id
    wx.navigateTo({
      url: `/pages/petDetail/petDetail?id=${petId}`
    })
  }
})
